<?php
namespace app\api\model;


use app\model\Base;

class UserGoldLog extends Base
{
    public function getAmountAttr($value)
    {
        $val = $value;
        if($value > 0)
            $val = '+' . $value;
        return $val;
    }

    public function getTypeFormatAttr($value)
    {
        return Base::$goldName;
    }
}